/*!============================================================================
 * @file timer.hpp 
 * @Synopsis  
 * @author DongKai
 * @version 1.0
 * @date 2009年12月04日 11时45分02秒 
 *  Company: Beijing Feynman Software Technology Co., Ltd.
 */

#include <sys/time.h>
#include <cstdio>

namespace utilx
{

    //! @brief 
    //!
    //! @description 
    class Timer
    {
        public:
            /// constructor of Timer
            Timer();

            /// destructor of Timer
            ~Timer();
            void start_timing();
            void stop_timing();
            unsigned long get_interval();

        protected:
            timeval start_, end_;

        private:
    }; /* -----  end of class Timer  ----- */
}
